package com.pansoft.openplanet.adapter;//package com.pansoft.openplanet.adapter;
//
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.TextView;
//
//import com.efounder.tbs.Md5Tool;
//import com.pansoft.openplanet.R;
//import com.pansoft.openplanet.bean.Contact;
//
//import java.util.List;
//
///**
// * Created by will on 18-3-21.
// */
//
//public class ContactDetailAdapter extends RecyclerView.Adapter<ContactDetailAdapter.ViewHolder> {
//
//    private Context context;
//    private List<Contact.Phone> phones;
//
//    public ContactDetailAdapter(Context context, List<Contact.Phone> phones) {
//        this.context = context;
//        this.phones = phones;
//    }
//
//    @Override
//    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View view = LayoutInflater.from(context).inflate(R.layout.talk_chain_item_contact_detail, parent, false);
//
//        return new ViewHolder(view);
//    }
//
//    @Override
//    public void onBindViewHolder(ViewHolder holder, int position) {
//        holder.tvPhone.setText(Md5Tool.hashKey(phones.get(position).getPhone()));
//        if (phones.get(position).getType()!=null)
//        holder.tvType.setText(phones.get(position).getType());
//    }
//
//    @Override
//    public int getItemCount() {
//        return phones.size();
//    }
//
//    public class ViewHolder extends RecyclerView.ViewHolder{
//        TextView tvType;
//        TextView tvPhone;
//
//        public ViewHolder(View itemView) {
//            super(itemView);
//            tvType = itemView.findViewById(R.id.tv_type);
//            tvPhone = itemView.findViewById(R.id.tv_phone);
//
//        }
//    }
//}
